package com.huawei.appgallery.foundation.ui.framework.fragment.multitabs;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.foundation.service.common.protocol.AppListFragmentProtocol;
import com.huawei.appgallery.foundation.service.common.protocol.request.AppListFragmentRequest;
import com.huawei.appgallery.foundation.store.bean.detail.DetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse;
import com.huawei.appgallery.foundation.ui.framework.fragment.AppListFragment;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.bean.startup.StartupResponse.TabInfo;
import com.huawei.appmarket.support.widget.tabhost.FragmentTabHost;
import com.huawei.secure.android.common.intent.SafeBundle;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import kotlin.Metadata;
import o.cfv;
import o.chp;
import o.chq;
import o.chr;
import o.cid;
import o.cis;
import o.civ;
import o.ciy;
import o.ciz;
import o.dgm;
import o.dgp;
import o.dky.h;
import o.dky.i;
import o.Logger;
import o.frj;
import o.frm;
import o.fry;
import o.fsc;
import o.fsd;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000~\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\b&\u0018\u0000 K2\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00030\u00020\u00012\u00020\u0004:\u0001KB\u0005¢\u0006\u0002\u0010\u0005J\u0010\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0019H&J\b\u0010\u001a\u001a\u00020\u0007H\u0014J\n\u0010\u001b\u001a\u0004\u0018\u00010\u001cH\u0014J\u0016\u0010\u001d\u001a\u00020\u00172\f\u0010\u001e\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001fH\u0014J\b\u0010 \u001a\u00020\u0017H\u0014J\u0014\u0010!\u001a\u00020\u00172\n\u0010\"\u001a\u0006\u0012\u0002\b\u00030\u001fH\u0014J\u0010\u0010#\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020$H\u0002J\b\u0010%\u001a\u00020\u0017H\u0014J\b\u0010&\u001a\u00020\u0015H\u0016J\b\u0010'\u001a\u00020\u0015H\u0016J\"\u0010(\u001a\u00020\u00172\u0006\u0010)\u001a\u00020\u00072\u0006\u0010*\u001a\u00020\u00072\b\u0010+\u001a\u0004\u0018\u00010,H\u0016J\b\u0010-\u001a\u00020\u0017H\u0016J\u0010\u0010.\u001a\u00020\u00172\u0006\u0010/\u001a\u00020\u0007H\u0016J\b\u00100\u001a\u00020\u0017H\u0016J\b\u00101\u001a\u00020\u0017H\u0016J\b\u00102\u001a\u00020\u0017H\u0014J\u0012\u00103\u001a\u00020\u00172\b\u0010\u001e\u001a\u0004\u0018\u00010\u001cH\u0014J\u0010\u00104\u001a\u00020\u00172\u0006\u00105\u001a\u000206H\u0016J\u0010\u00107\u001a\u00020\u00172\u0006\u0010/\u001a\u00020\u0007H\u0014J\u0012\u00108\u001a\u00020\u00172\b\u00109\u001a\u0004\u0018\u00010:H\u0014J\u0010\u0010;\u001a\u00020\u00172\u0006\u0010<\u001a\u00020\u0007H\u0016J\u0010\u0010=\u001a\u00020\u00172\u0006\u0010<\u001a\u00020\u0007H\u0016J\u0010\u0010>\u001a\u00020\u00172\u0006\u0010<\u001a\u00020\u0007H\u0016J\b\u0010?\u001a\u00020\u0017H\u0014J\u0012\u0010@\u001a\u00020\u00172\b\u0010A\u001a\u0004\u0018\u000106H\u0016J\u0010\u0010B\u001a\u00020\u00172\u0006\u0010/\u001a\u00020\u0007H\u0004J\u0010\u0010C\u001a\u00020\u00172\u0006\u0010D\u001a\u00020\u0007H\u0014J\u0010\u0010E\u001a\u00020\u00172\u0006\u0010F\u001a\u00020\u0007H\u0014J\u0016\u0010G\u001a\u00020\u00172\f\u0010H\u001a\b\u0012\u0004\u0012\u00020J0IH&R\u001a\u0010\u0006\u001a\u00020\u0007X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\b\u0010\t\"\u0004\b\n\u0010\u000bR\u001c\u0010\f\u001a\u0004\u0018\u00010\rX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u0010\u0010\u0012\u001a\u0004\u0018\u00010\u0013X\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0014\u001a\u00020\u0015X\u000e¢\u0006\u0002\n\u0000¨\u0006L"}, d2 = {"Lcom/huawei/appgallery/foundation/ui/framework/fragment/multitabs/MultiTabsFragment;", "Lcom/huawei/appgallery/foundation/ui/framework/fragment/AppListFragment;", "Lcom/huawei/appgallery/foundation/service/common/protocol/AppListFragmentProtocol;", "Lcom/huawei/appgallery/foundation/service/common/protocol/request/AppListFragmentRequest;", "Lcom/huawei/appgallery/foundation/ui/framework/fragment/multitabs/MultiTabsSelectListener;", "()V", "defaultSelectedPosition", "", "getDefaultSelectedPosition", "()I", "setDefaultSelectedPosition", "(I)V", "fragmentTabHost", "Lcom/huawei/appmarket/support/widget/tabhost/FragmentTabHost;", "getFragmentTabHost", "()Lcom/huawei/appmarket/support/widget/tabhost/FragmentTabHost;", "setFragmentTabHost", "(Lcom/huawei/appmarket/support/widget/tabhost/FragmentTabHost;)V", "fragmentTabHostAdapter", "Lcom/huawei/appgallery/foundation/ui/framework/fragment/multitabs/MultiTabsFragmentTabHostAdapter;", "pendingClickReport", "", "createContentLayout", "", "viewParent", "Landroid/view/ViewGroup;", "getLayoutId", "getTabDataCache", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/fragment/TaskFragment$Response;", "initLayoutBySuccRes", "response", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/bean/BaseDetailResponse;", "initListDataLayout", "initSubTabData", "res", "initTabHost", "Landroid/view/View;", "initTitleInfo", "isChildOnTop", "isOnTop", "onActivityResult", "requestCode", "resultCode", "data", "Landroid/content/Intent;", "onColumnReselected", "onColumnSelected", "position", "onColumnUnselected", "onDestroyView", "onRefreshTabPage", "onResponseStart", "onSaveInstanceState", "outState", "Landroid/os/Bundle;", "onSelectedMultiTabPage", "onSetRequestType", "req", "Lcom/huawei/appgallery/foundation/store/bean/detail/DetailRequest;", "onTabReSelect", "index", "onTabSelect", "onTabUnSelect", "onUnSelectedMultiTabPage", "onViewStateRestored", "savedInstanceState", "reportTabClick", "restoreSelectedSubTab", "selectedPosition", "setSubFragmentVisibility", "visibility", "updateSubTabData", "list", "", "Lcom/huawei/appmarket/framework/bean/TabItem;", "Companion", "HiAppBase_release"}, k = 1, mv = {1, 1, 15})
public abstract class MultiTabsFragment extends AppListFragment<AppListFragmentProtocol<AppListFragmentRequest>> implements cis {
    public static final e ˊ = new e();
    private civ ॱॱ;
    @Nullable
    private FragmentTabHost ᐝ;
    private boolean ﹳ;
    private int ﾞ;
    private HashMap ﾟ;

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "Lcom/huawei/appgallery/foundation/ui/framework/fragment/multitabs/MultiTabsFragmentTabHostAdapter;", "invoke"}, k = 3, mv = {1, 1, 15})
    static final class b extends fsc implements fry<civ> {
        final /* synthetic */ MultiTabsFragment ˊ;

        b(MultiTabsFragment multiTabsFragment) {
            this.ˊ = multiTabsFragment;
            super(0);
        }

        public /* synthetic */ Object ˋ() {
            return ˎ();
        }

        @NotNull
        public final civ ˎ() {
            List ॱ = this.ˊ.ᐝʽ;
            if (ॱ == null) {
                ॱ = frj.ˎ();
            }
            civ o_civ = new civ(ॱ);
            o_civ.ˋ(new chq(this.ˊ));
            o_civ.ˊ(this.ˊ.ʽॱ());
            o_civ.ˊ(this.ˊ.ᵔ);
            FragmentTabHost ˊʻ = this.ˊ.ˊʻ();
            if (ˊʻ != null) {
                ˊʻ.setAdapter(o_civ);
            }
            return o_civ;
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u0012\u0012\u0004\u0012\u00020\u00020\u0001j\b\u0012\u0004\u0012\u00020\u0002`\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "Ljava/util/ArrayList;", "Lcom/huawei/appgallery/serverreqkit/api/bean/startup/StartupResponse$TabInfo;", "Lkotlin/collections/ArrayList;", "invoke"}, k = 3, mv = {1, 1, 15})
    static final class d extends fsc implements fry<ArrayList<TabInfo>> {
        final /* synthetic */ BaseDetailResponse ˎ;

        d(BaseDetailResponse baseDetailResponse) {
            this.ˎ = baseDetailResponse;
            super(0);
        }

        public /* synthetic */ Object ˋ() {
            return ˏ();
        }

        @NotNull
        public final ArrayList<TabInfo> ˏ() {
            List list;
            Collection collection;
            ArrayList arrayList;
            ArrayList ˎ = this.ˎ.ˎ();
            if (ˎ != null) {
                Collection arrayList2 = new ArrayList();
                for (Object next : ˎ) {
                    if (next instanceof TabInfo) {
                        arrayList2.add(next);
                    }
                }
                list = (List) arrayList2;
            } else {
                list = null;
            }
            ArrayList<TabInfo> arrayList3 = new ArrayList();
            if (list != null) {
                collection = list;
                arrayList = arrayList3;
            } else {
                collection = frj.ˎ();
                ArrayList<TabInfo> arrayList4 = arrayList3;
            }
            arrayList.addAll(collection);
            return arrayList3;
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000¨\u0006\u0006"}, d2 = {"Lcom/huawei/appgallery/foundation/ui/framework/fragment/multitabs/MultiTabsFragment$Companion;", "", "()V", "SelectedTabPositionKey", "", "TAG", "HiAppBase_release"}, k = 1, mv = {1, 1, 15})
    public static final class e {
        private e() {
        }
    }

    public abstract void ˎ(@NotNull ViewGroup viewGroup);

    public void ٴ() {
        if (this.ﾟ != null) {
            this.ﾟ.clear();
        }
    }

    public void ॱॱ(@org.jetbrains.annotations.NotNull com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse<?> r1) {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appgallery.foundation.ui.framework.fragment.multitabs.MultiTabsFragment.ॱॱ(com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse):void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r0 = "res";
        o.fsd.ˊ(r3, r0);
        r0 = new com.huawei.appgallery.foundation.ui.framework.fragment.multitabs.MultiTabsFragment$d;
        r0.<init>(r3);
        r0 = (o.fry) r0;
        r0 = r0.ˋ();
        r0 = (java.util.ArrayList) r0;
        r0 = (java.util.List) r0;
        r1 = r3.ˋˊ();
        r0 = r2.ˏ(r0, r1);
        if (r0 == 0) goto L_0x0043;
    L_0x001e:
        r2.ˋ(r0);
        r1 = r2.ॱॱ;
        if (r1 == 0) goto L_0x0028;
    L_0x0025:
        r1.ˏ(r0);
    L_0x0028:
        r0 = r2.ॱॱ;
        if (r0 == 0) goto L_0x002f;
    L_0x002c:
        r0.ˊ();
    L_0x002f:
        r0 = r2.ᐝ;
        if (r0 == 0) goto L_0x0038;
    L_0x0033:
        r1 = r2.ﾞ;
        r0.setCurrentTab(r1);
        r0 = r2.ᵔ;
        if (r0 == 0) goto L_0x0048;
        r0 = r2.ﾞ;
        r2.ˊॱ(r0);
        return;
    L_0x0043:
        r0 = o.frj.ˎ();
        goto L_0x001e;
        r0 = 1;
        r2.ﹳ = r0;
        goto L_0x0042;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appgallery.foundation.ui.framework.fragment.multitabs.MultiTabsFragment.ॱॱ(com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse):void");
    }

    @Nullable
    public final FragmentTabHost ˊʻ() {
        return this.ᐝ;
    }

    protected final int י() {
        return this.ﾞ;
    }

    public void ॱˊ(@Nullable Bundle bundle) {
        super.ॱˊ(bundle);
        if (bundle != null) {
            this.ﾞ = new SafeBundle(bundle).getInt("SelectedTabPositionKey");
            ˏॱ(this.ﾞ);
        }
    }

    public void ˋ(@NotNull Bundle bundle) {
        fsd.ˊ((Object) bundle, "outState");
        super.ˋ(bundle);
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            new SafeBundle(bundle).putInt("SelectedTabPositionKey", fragmentTabHost.getCurrentTab());
        }
    }

    public int ߵ() {
        return i.ͺ;
    }

    public void ᐝ() {
        super.ᐝ();
        this.ᐝ = (FragmentTabHost) null;
        this.ॱॱ = (civ) null;
        ٴ();
    }

    public void ॱ(int i, int i2, @Nullable Intent intent) {
    }

    public void ᐨॱ() {
    }

    public void ˏ(@Nullable BaseDetailResponse<?> baseDetailResponse) {
    }

    @Nullable
    public com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b ʽʻ() {
        return null;
    }

    public void ʽॱ(int i) {
        Fragment ॱ;
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            ॱ = fragmentTabHost.ॱ();
        } else {
            ॱ = null;
        }
        if (!(ॱ instanceof cid)) {
            ॱ = null;
        }
        cid o_cid = (cid) ॱ;
        if ((o_cid == null || o_cid.ʽʼ() != i) && o_cid != null) {
            o_cid.ॱᐝ(i);
        }
    }

    public boolean ʻʼ() {
        FragmentTabHost fragmentTabHost = this.ᐝ;
        Object ॱ = fragmentTabHost != null ? fragmentTabHost.ॱ() : null;
        if (ॱ == null) {
            return false;
        }
        if (ॱ instanceof ciz) {
            return ((ciz) ॱ).ad_();
        }
        Logger.e("MultiTabsFragment", "isChildOnTop(), unknown type, fragment: " + ॱ + ", uri:" + this.ʼˊ);
        return false;
    }

    public boolean ad_() {
        return ʻʼ();
    }

    public void ᵔ() {
        this.ߵ = (FrameLayout) this.ॱˍ.findViewById(h.ͺॱ);
        FrameLayout frameLayout = this.ߵ;
        fsd.ॱ(frameLayout, "listDataLayout");
        ˎ(frameLayout);
        frameLayout = this.ߵ;
        fsd.ॱ(frameLayout, "listDataLayout");
        ˋ((View) frameLayout);
    }

    private final void ˋ(View view) {
        this.ᐝ = (FragmentTabHost) view.findViewById(16908306);
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            fragmentTabHost.setup(ॱˊ(), ʽॱ(), 16908305);
        }
        String str = "MultiTabsFragment";
        StringBuilder append = new StringBuilder().append("initTabHost tabItemList:");
        List list = this.ᐝʽ;
        Logger.ˎ(str, append.append(list != null ? Integer.valueOf(list.size()) : null).toString());
        this.ॱॱ = (civ) new b(this).ˋ();
    }

    public void ʹॱ() {
        Bundle bundle = new Bundle();
        bundle.putSerializable("data_filter_switch", this.ॱﹳ);
        bundle.putSerializable("spinner_item", this.ॱﾞ);
        civ o_civ = this.ॱॱ;
        if (o_civ != null) {
            o_civ.ˎ(bundle);
        }
    }

    public void ˊ(@Nullable cfv o_cfv) {
    }

    public void ʼ(int i) {
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            fragmentTabHost.setCurrentTab(i);
        }
        ˊॱ(i);
    }

    public void ॱॱ(int i) {
        Fragment ॱ;
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            ॱ = fragmentTabHost.ॱ();
        } else {
            ॱ = null;
        }
        if (!(ॱ instanceof ciy)) {
            ॱ = null;
        }
        ciy o_ciy = (ciy) ॱ;
        if (o_ciy != null) {
            o_ciy.ʾॱ();
        }
    }

    public void ʽ(int i) {
    }

    public void ॱˋ(int i) {
        Fragment ॱ;
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            ॱ = fragmentTabHost.ॱ();
        } else {
            ॱ = null;
        }
        if (!(ॱ instanceof ciy)) {
            ॱ = null;
        }
        ciy o_ciy = (ciy) ॱ;
        if (o_ciy != null) {
            o_ciy.ˋ(i);
        }
    }

    public void ꞌॱ() {
        Fragment ॱ;
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            ॱ = fragmentTabHost.ॱ();
        } else {
            ॱ = null;
        }
        if (!(ॱ instanceof ciy)) {
            ॱ = null;
        }
        ciy o_ciy = (ciy) ॱ;
        if (o_ciy != null) {
            o_ciy.ʽˊ();
        }
    }

    public void ʾॱ() {
        Fragment ॱ;
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            ॱ = fragmentTabHost.ॱ();
        } else {
            ॱ = null;
        }
        if (!(ॱ instanceof ciy)) {
            ॱ = null;
        }
        ciy o_ciy = (ciy) ॱ;
        if (o_ciy != null) {
            o_ciy.ʾॱ();
        }
    }

    protected void ˏॱ(int i) {
        civ o_civ = this.ॱॱ;
        if (o_civ != null) {
            o_civ.ˊ();
        }
        FragmentTabHost fragmentTabHost = this.ᐝ;
        if (fragmentTabHost != null) {
            fragmentTabHost.setCurrentTab(i);
        }
    }

    public void ˋ(int i) {
        super.ˋ(i);
        civ o_civ = this.ॱॱ;
        if (o_civ != null) {
            o_civ.ˊ(true);
        }
        if (this.ﹳ) {
            int ˎ;
            o_civ = this.ॱॱ;
            if (o_civ != null) {
                ˎ = o_civ.ˎ();
            } else {
                ˎ = 0;
            }
            if (ˎ != 0) {
                ˊॱ(this.ﾞ);
                this.ﹳ = false;
            }
        }
    }

    public void ʽˊ() {
        super.ʽˊ();
        civ o_civ = this.ॱॱ;
        if (o_civ != null) {
            o_civ.ˊ(false);
        }
    }

    protected final void ˊॱ(int i) {
        int length;
        List list = this.ᐝʽ;
        dgp o_dgp = list != null ? (dgp) frm.ˎ(list, i) : null;
        if (o_dgp != null) {
            String ˏ = o_dgp.ˏ();
            if (ˏ != null) {
                length = ˏ.length();
                if (length <= 0) {
                    if (o_dgp == null) {
                        fsd.ˎ();
                    }
                    ͺ(o_dgp.ˏ());
                    chr ˎ = new o.chr.e().ˊ(o_dgp.ˏ()).ˎ(o_dgp.ˊ()).ˏ(String.valueOf(dgm.ˎ(ॱˋ()))).ˎ();
                    fsd.ॱ(ˎ, "TabClickReportData.Build…                 .build()");
                    chp.ˋ(ˎ);
                    Logger.ˎ("MultiTabsFragment", "reportTabClick, subtab_click, tabId = " + o_dgp + ".tabId");
                }
                Logger.e("MultiTabsFragment", "reportTabClick, tabItem = " + (o_dgp == null ? o_dgp.ˏ() : null));
                return;
            }
        }
        length = 0;
        if (length <= 0) {
            if (o_dgp == null) {
            }
            Logger.e("MultiTabsFragment", "reportTabClick, tabItem = " + (o_dgp == null ? o_dgp.ˏ() : null));
            return;
        }
        if (o_dgp == null) {
            fsd.ˎ();
        }
        ͺ(o_dgp.ˏ());
        chr ˎ2 = new o.chr.e().ˊ(o_dgp.ˏ()).ˎ(o_dgp.ˊ()).ˏ(String.valueOf(dgm.ˎ(ॱˋ()))).ˎ();
        fsd.ॱ(ˎ2, "TabClickReportData.Build…                 .build()");
        chp.ˋ(ˎ2);
        Logger.ˎ("MultiTabsFragment", "reportTabClick, subtab_click, tabId = " + o_dgp + ".tabId");
    }

    public void ˋ(@Nullable com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b bVar) {
        super.ˋ(bVar);
        ResponseBean responseBean = bVar != null ? bVar.ˋ : null;
        if (!(responseBean instanceof DetailResponse)) {
            responseBean = null;
        }
        DetailResponse detailResponse = (DetailResponse) responseBean;
        if (detailResponse != null && detailResponse.getRtnCode_() == 0 && detailResponse.getResponseCode() == 0) {
            ArrayList ˎ = detailResponse.ˎ();
            if ((ˎ != null ? ˎ.size() : 0) <= 1) {
                detailResponse.setResponseCode(1);
            }
        }
    }
}
